package org.geometerplus.fbreader.filetype;

import org.geometerplus.zlibrary.core.filesystem.ZLFile;
import org.geometerplus.zlibrary.core.filesystem.ZLTxtFile;
import org.geometerplus.zlibrary.core.util.MimeType;

public class FileTypeTxt extends FileType {

    public static final String FileMode = "Txt://";

    protected FileTypeTxt() {
        super(ZLTxtFile.ExtentionName);

    }

    @Override
    public boolean acceptsFile(ZLFile file) {
        final String extension = file.getExtension();
        return ZLTxtFile.ExtentionName.equalsIgnoreCase(extension);

    }

    @Override
    public String extension() {
        return ZLTxtFile.ExtentionName;
    }

    @Override
    public MimeType mimeType() {
        return null;
    }

}
